// const path = require('path')

// function resolve (dir) {
//   return path.join(__dirname, dir)
// }

module.exports = {
  lintOnSave: false,
  devServer: {
    port: 8081,
    proxy: {
      '/apis': {
        target: 'https://u.y.qq.com/', // target host
        ws: true, // proxy websockets
        changeOrigin: true, // needed for virtual hosted sites
        pathRewrite: {
          '^/apis': '' // rewrite path
        }
      }
    }
  }
  // chainWebpack: config => {
  //   config.resolve.alias
  //     .set('@', resolve('src'))
  //     .set('assets', resolve('src/assets'))
  //     .set('components', resolve('src/components'))
  //     .set('public', resolve('public'))
  //     .set('common', resolve('src/common'))
  // }
}
